package cn.smallran.novel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.smallran.common.annotation.Excel;
import cn.smallran.common.core.domain.BaseEntity;

/**
 * 小说章节对象 book_chapter
 * 
 * @author smallran
 * @date 2024-12-01
 */
public class BookChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 小说ID */
    @Excel(name = "小说ID")
    private Long bookId;

    /** 章节号 */
    @Excel(name = "章节号")
    private Integer chapterNum;

    /** 章节名 */
    @Excel(name = "章节名")
    private String chapterName;

    /** 章节字数 */
    @Excel(name = "章节字数")
    private Integer wordCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setChapterNum(Integer chapterNum) 
    {
        this.chapterNum = chapterNum;
    }

    public Integer getChapterNum() 
    {
        return chapterNum;
    }
    public void setChapterName(String chapterName) 
    {
        this.chapterName = chapterName;
    }

    public String getChapterName() 
    {
        return chapterName;
    }
    public void setWordCount(Integer wordCount) 
    {
        this.wordCount = wordCount;
    }

    public Integer getWordCount() 
    {
        return wordCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("chapterNum", getChapterNum())
            .append("chapterName", getChapterName())
            .append("wordCount", getWordCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
